const axios = require('axios');
const FormData = require('form-data');
axios.defaults.withCredentials = true

let mydata = new FormData();
mydata.append('Cookie', "token=it_token:1656853695.91139584578");
mydata.append('Accept', "application/json, text/plain, */*");
mydata.append('Content-Type', "application/json;charset=UTF-8");

axios({
    method: 'POST',
    // url: 'http://tcoa.17usoft.com/platform/EmployeeBase/WorkExperienceListBind',
    url: 'http://tcoa.17usoft.com/bbs/GetMeetingList?_=1657621572932',
    headers: {
        // 'Accept': "*/*",
        // 'Accept-Encoding': "gzip, deflate",
        // 'Accept-Language': "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,ko-KR;q=0.6,ko;q=0.5,ja-JP;q=0.4,ja;q=0.3",
        // "Cache-Control": "no-cache",
        // "Connection": "keep-alive",
        // "Content-Length": "0",
        "Cookie": "ab.storage.deviceId.7af503ae-0c84-478f-98b0-ecfff5d67750=%7B%22g%22%3A%22e4533bfb-f50e-f190-ee1e-a1fe1f5d7208%22%2C%22c%22%3A1625022642483%2C%22l%22%3A1636644433795%7D; ab.storage.userId.7af503ae-0c84-478f-98b0-ecfff5d67750=%7B%22g%22%3A%22browser-1626134952189-4%22%2C%22c%22%3A1636644433790%2C%22l%22%3A1636644433795%7D; ab.storage.sessionId.7af503ae-0c84-478f-98b0-ecfff5d67750=%7B%22g%22%3A%22c9e524b7-bd2f-da5a-9525-71c328514600%22%2C%22e%22%3A2141905394810%2C%22c%22%3A1636644433793%2C%22l%22%3A1641905394810%7D; TCOA_Global_ManageUnitCookie=UlZYQ2J0WXhPYWtwNlErdWhWbnBBUT090; TCOA_Global_MainManageUnitCookie=UlZYQ2J0WXhPYWtwNlErdWhWbnBBUT090; CNZZDATA1276133222=537082396-1651813958-http%253A%252F%252Ftccommon.17usoft.com%252F%7C1652167108; Hm_lvt_6233c395aa2a56faa6a394aebe4818e1=1650447773,1652508493; TCOA_Global_Cookie=ERH1uUovAt2PypJEdCXrwYhDYcGrWuAeeW%2ftOsuGW9PfKngNRHRdtE4xdxogRmyu3ilQ2iRkNpbkbIejBrTXsipIL5vvt12pFqziclhS9FU%3d; Meeting_EmpInfo=YybLSGfQ3j6ZfF5U75Ygi5HM%2fojp5i2F5J9G3W34%2bGKbh4Bl1LCdnA%3d%3d; oastate=3570a885b0564fcb9f3a363025f41284; ASP.NET_SessionId=ijokckrm33qrponxb1rmz1k4; access_token=cf368f4cda5c98d98a09acf00e460539; __tctmu=102596417.0.0; __tctmz=102596417.1657612944757.356.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); longKey=1623757332666137; __tctrack=0; __tctma=102596417.1623757332666137.1623757332851.1657612944757.1657616957137.357; userInfo=%7b%22UserId%22%3a%221206058%22%2c%22DepartmentId%22%3a8564%7d; ManageUnitRangeCookie=0583d; KpiEmpCodeCookie=1206058; leftMenu=perperformanceleftmenu; leftMenuSelected=permygrade; onestop=0b531e0a236344cd8423afba4f1cc4b8; Hm_lvt_9b3d555f06d923956fb1e764176398fd=1657618959; tc_employeeid=uC2T6CiCtA; Hm_lpvt_9b3d555f06d923956fb1e764176398fd=1657619000; __tctmb=102596417.1765646024479125.1657619529162.1657619529162.4; __tctmc=102596417.169733540; __tctmd=102596417.737325; TCOA_Global_Cookie_Last=ERH1uUovAt2PypJEdCXrwYhDYcGrWuAeeW%252ftOsuGW9PfKngNRHRdtE4xdxogRmyu3ilQ2iRkNpbkbIejBrTXsipIL5vvt12pFqziclhS9FU%253d; tcoatcmeta=c78379ca01f4beda835f322d652381f3; Hm_lvt_86ccbbb8b851ebc52cb32e83a3eaa3f9=; Hm_lpvt_86ccbbb8b851ebc52cb32e83a3eaa3f9=1657619631; route=f30cd0111cbbaccc618b97d6c8e8a311",
        // 'DNT': '1',
        // 'Host': ' tcoa.17usoft.com',
        // 'Origin': 'http://tcoa.17usoft.com',
        // 'Pragma': 'no-cache',
        // 'Referer': 'http://tcoa.17usoft.com/platform/EmployeeBase/Index?ParentID=01&MenuID=0101&type=apply',
        // 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36',
        // 'X-Requested-With': 'XMLHttpRequest'
    } // 这个地方大坑，headers自己写multipart/form-data会出问题[恶心死了]，必须写这个

}).then(res => {
    console.log('save', res.data)
}).catch(err => {
    console.log(err)
})